package com.wen.service;

import com.wen.pojo.User;
import com.wen.utils.PageBean;
import com.wen.utils.Result;
import dto.AssignRoleDto;

public interface UserService {
    //根据账号查询用户信息
    User findUserByCode (String userCode);

    //分页查询用户
    PageBean<User> allUserList(Integer pageNum, Integer pageSize, com.wen.pojo.User user);


     //添加用户信息
    Boolean addUser(User user);

    //根据用户id修改用户状态
    Result setStateById(User user);

    //给用户分配角色
    Result assignRole(AssignRoleDto assignRoleDto);

    //删除用户
    Result deleteUserList(int[] userList);

    Result updUserInfo(User user);

    Result updatePwd(Integer userId);
}
